<!-- IF S_GET_CHAT -->
	<!-- IF S_READ or S_ADD -->
		<!-- BEGIN chatrow -->
			<div id="p{chatrow.MESSAGE_ID}" class="post bg{chatrow.CLASS}">
				<div class="inner"><span class="corners-top"><span></span></span>
					<div class="postbody">
						<!-- IF U_ACP or U_MCP -->
							<ul class="profile-icons">
								<li class="delete-icon"><a href="javascript:void({chatrow.MESSAGE_ID})" title="{L_DELETE_POST}" onClick="delete_post('{chatrow.MESSAGE_ID}')"><span>{L_DELETE_POST}</span></a></li>
								<li class="report-icon"><a href="javascript:void({chatrow.USER_ID})" title="{L_CHAT_BAN_USER}" onClick="ban_user('{chatrow.USER_ID}')"><span>{L_CHAT_BAN_USER}</span></a></li>
							</ul>
						<!-- ENDIF -->
						<div class="content">{chatrow.MESSAGE}</div>
					</div>
					<dl class="postprofile" id="profile{postrow.POST_ID}">
						<dt>{chatrow.USERNAME_FULL}<br />{chatrow.TIME}</dt>
					</dl>
				<span class="corners-bottom"><span></span></span></div>
			</div>
		<!-- END chatrow -->--!--{LAST_ID}--!--
	<!-- ENDIF -->
<!-- ELSE -->
	<!-- IF S_CHAT -->
		<!-- INCLUDE overall_header.html -->
	<!-- ENDIF -->
	<link href="{T_THEME_PATH}/demon_chat.css" rel="stylesheet" type="text/css" media="screen, projection" />

	<ul class="linklist">
		<li class="rightside pagination"><!-- IF PAGINATION --><span>{PAGINATION}</span><!-- ELSE -->{PAGE_NUMBER}<!-- ENDIF --></li>
	</ul>
	<div class="forabg" align="left">
		<div class="inner">
			<span class="corners-top"><span></span></span>
				<div class="shouts" style="width: 100%">
					<div id="chat">
						<!-- BEGIN chatrow -->
							<div id="p{chatrow.USER_ID}"><div id="p{chatrow.MESSAGE_ID}" class="post bg{chatrow.CLASS}">
								<div class="inner"><span class="corners-top"><span></span></span>
									<div class="postbody">
										<!-- IF U_ACP or U_MCP -->
											<ul class="profile-icons">
												<li class="delete-icon">
													<a href="javascript:void({chatrow.MESSAGE_ID})" title="{L_DELETE_POST}" onclick="delete_post('{chatrow.MESSAGE_ID}')"><span>{L_DELETE_POST}</span></a>
												</li>
												<li class="report-icon">
													<a href="javascript:void({chatrow.USER_ID})" title="{L_CHAT_BAN_USER}" onClick="ban_user('{chatrow.USER_ID}')"><span>{L_CHAT_BAN_USER}</span></a>
												</li>
											</ul>
										<!-- ENDIF -->
										<div class="content">{chatrow.MESSAGE}</div>
									</div>
									<dl class="postprofile" id="profile{postrow.POST_ID}">
										<dt>{chatrow.USERNAME_FULL}<br /><b style="font-size: 0.9em;">{chatrow.TIME}</b></dt>
									</dl>
								<span class="corners-bottom"><span></span></span></div>
							</div></div>
						<!-- END chatrow -->
					</div>
				</div>
			<span class="corners-bottom"><span></span></span>
		</div>
	</div>
	<div class="forabg" align="center">
		<div class="inner">
			<span class="corners-top"><span></span></span>
				<div class="post">
					<div id="refresh">
						<strong><span><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a></span></strong>
					</div>
					<div id="archive">
						<strong><span><a href="{U_CHAT}" title="{L_CHAT_EXPLAIN}">{L_CHAT}</a></span></strong>
					</div>
					<div id="author">{L_DETAILS}</div>
				</div>
			<span class="corners-bottom"><span></span></span>
		</div>
	</div>
	<!-- IF S_CHAT -->
		<!-- INCLUDE overall_footer.html -->
	<!-- ENDIF -->
<!-- ENDIF -->